// JavaScript Document
var myMessages = ['info','warning','error','success'];
function hideAllMessages()
{
	 var messagesHeights = new Array(); // this array will store height for each
 
	 for (i=0; i<myMessages.length; i++)
	 { 
		$('.'+myMessages[i]).hide("fast");
	 }
}
function showMessage(type)
{
	hideAllMessages();
	$('.'+type).show('slow');
}